import request from '@/utils/request'

export function getNowLocationByClientId(id) {
  return request({
    url: '/bis/Client/getNowLocationByClientId/' + id,
    method: 'get'
  })
}


// 查询设备信息列表
export function listClient(query) {
  return request({
    url: '/bis/Client/list',
    method: 'get',
    params: query
  })
}

// 查询设备信息详细
export function getClient(id) {
  return request({
    url: '/bis/Client/' + id,
    method: 'get'
  })
}

// 新增设备信息
export function addClient(data) {
  return request({
    url: '/bis/Client',
    method: 'post',
    data: data
  })
}

// 修改设备信息
export function updateClient(data) {
  return request({
    url: '/bis/Client',
    method: 'put',
    data: data
  })
}

// 删除设备信息
export function delClient(id) {
  return request({
    url: '/bis/Client/' + id,
    method: 'delete'
  })
}
// 根据设备id查询设备位置记录详细
export function getClientLocationRecordByClientId(recordParam) {
  return request({
    url: '/bis/Client/selectClientLocationRecord',
    method: 'post',
    data: recordParam
  })
}
// 获取所有设备定位信息
export function getAllClientNowLocation() {
  return request({
    url: '/bis/Client/getAllClientNowLocation',
    method: 'get'
  })
}

